home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / SwingConstants.java < prev    next >
Text File  |  1998-06-30  |  2KB  |  69 lines

  1. /*
  2.  * @(#)SwingConstants.java    1.4 98/01/30
  3.  *
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  *
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  *
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  *
  19.  */
  20. package com.sun.java.swing;
  21.  
  22.  
  23. /**
  24.  * A collection of constants generally used for positioning and orienting
  25.  * components on the screen.
  26.  *
  27.  * @version 1.4 01/30/98
  28.  * @author Jeff Dinkins
  29.  */
  30. public interface SwingConstants {
  31.  
  32.         /** 
  33.          * The central position in an area. Used for
  34.          * both compass-direction constants (NORTH, etc.)
  35.          * and box-orientation constants (TOP, etc.).
  36.          */
  37.         public static final int CENTER  = 0;
  38.  
  39.         /** 
  40.          * Box-orientation constants used to specify a position.
  41.          */
  42.         public static final int TOP     = 1;
  43.         public static final int LEFT    = 2;
  44.         public static final int BOTTOM  = 3;
  45.         public static final int RIGHT   = 4;
  46.  
  47.         /** 
  48.          * Compass-direction constants used to specify a position.
  49.          */
  50.         public static final int NORTH      = 1;
  51.         public static final int NORTH_EAST = 2;
  52.         public static final int EAST       = 3;
  53.         public static final int SOUTH_EAST = 4;
  54.         public static final int SOUTH      = 5;
  55.         public static final int SOUTH_WEST = 6;
  56.         public static final int WEST       = 7;
  57.         public static final int NORTH_WEST = 8;
  58.  
  59.     /**
  60.      * These constants specify a horizontal or 
  61.      * vertical orientation. For example, they are
  62.      * used by scrollbars and sliders.
  63.      */
  64.         public static final int HORIZONTAL = 0;
  65.         public static final int VERTICAL   = 1;    
  66. }
  67.  
  68.  
  69.